
#tcp/makefile 


# This is a basic Makefile for setting the general configuration
include ../Makeheader.mk


OBJS = curl_http.o  ota_manager.o  err_code_mk.o sys_msg_process.o  plcgw_sys.o   pb_kt_ota_device.o ##  ota_server.o  ota_api.o 
all : $(OBJS) COPY_OBJ
#	$(CC) $^  -o  $@

%.o : %.c 
	$(CC)  $(CFLAGS)  -c  $<  -o  $@  


COPY_OBJ:
	cp  *.o ../$(OBJS_DIR)
	


#比较稳健的clean做法，表示clean是一个伪目标
.PHONY: clean

clean:
	@rm -f *.o *.a 
#	@for i in *.c;do rm -f `basename $$i .c`.s;done



